package com.mrd.gtimpframe.service.impl;

import com.mrd.gtimpframe.entity.RejectCount;
import com.mrd.gtimpframe.repository.RejectCountMapper;
import com.mrd.gtimpframe.service.RejectCountService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by dusy on 2017/7/31.
 */
@Service
public class RejectCountServiceImpl implements RejectCountService {
    @Autowired
    private RejectCountMapper rejectCountMapper;

    @Override
    @Transactional
    public int deleteByPrimaryKey(String id) {
        return rejectCountMapper.deleteByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int insert(RejectCount record) {
        return rejectCountMapper.insert(record);
    }

    @Override
    @Transactional
    public int insertSelective(RejectCount record) {
        return rejectCountMapper.insertSelective(record);
    }

    @Override
    public RejectCount selectByPrimaryKey(String id) {
        return rejectCountMapper.selectByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int updateByPrimaryKeySelective(RejectCount record) {
        return rejectCountMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(RejectCount record) {
        return rejectCountMapper.updateByPrimaryKey(record);
    }

    /**
     * 根据报关单id查找
     */
    @Override
    public RejectCount selectByDid(String did) {
        return rejectCountMapper.selectByDid(did);
    }
}
